package com.xiong.sui;

import org.junit.Test;

public class SuiTest {

    @Test
    public void Test(){
        double num=14000;
        double num2=0;
        if(5000 < num && num <8000){
            num2=num * 0.03;
        }else if(8000<num && num <17000){
            num2=3000 * 0.03 + (num-8000) * 0.1;
        }else if(17000 < num && num <30000){
            num2=3000 * 0.03 + (9000 * 0.1) +(num - 17000) * 0.2;
        }else if(30000<num && num <40000){
            num2=3000 * 0.03 + (9000 * 0.1) + 13000 * 0.2 +(35000- 30000) * 0.25;
        }
        System.out.println(num2);
    }
}
